


<if condition="($data['status'] eq 3) and !$data['comment_time'] and $userId eq $data['user_id'] and (($data['pay_type'] eq 1 and $data['pay_time'] gt 0) or ($data['pay_type'] eq 0))">
    <div class="dialog clearfix">
        <span class="left-big"></span>
        <span class="left-middle"></span>
        <p><span>服务星级：</span></p>
        <p class="form-box">
            <textarea class="textarea" placeholder="服务评价描述" id="comment"></textarea>
        </p>
        <div class="grade">
            <p class="stars-list">响应时间
                <span class="iconfont icon-xingxing star gray-star quality"></span>
                <span class="iconfont icon-xingxing star gray-star quality"></span>
                <span class="iconfont icon-xingxing star gray-star quality"></span>
                <span class="iconfont icon-xingxing star gray-star quality"></span>
                <span class="iconfont icon-xingxing star gray-star quality"></span>
                <span class="level"></span>
            </p>
            <p class="stars-list">维修质量
                <span class="iconfont icon-xingxing star gray-star service"></span>
                <span class="iconfont icon-xingxing star gray-star service"></span>
                <span class="iconfont icon-xingxing star gray-star service"></span>
                <span class="iconfont icon-xingxing star gray-star service"></span>
                <span class="iconfont icon-xingxing star gray-star service"></span>
                <span class="level"></span>
            </p>
            <p class="stars-list">服务态度
                <span class="iconfont icon-xingxing star gray-star image"></span>
                <span class="iconfont icon-xingxing star gray-star image"></span>
                <span class="iconfont icon-xingxing star gray-star image"></span>
                <span class="iconfont icon-xingxing star gray-star image"></span>
                <span class="iconfont icon-xingxing star gray-star image"></span>
                <span class="level"></span>
            </p>
        </div>
        <a href="javascript:void(0)" class="submit" id="submit">提交评价</a>
    </div>
</if>

<if condition="($data['status'] eq 3 and $data['comment_time'] ) and (($userId eq $data['repairman_id']) or ($parent_position neq 1)) and (($data['pay_type'] eq 1 and $data['pay_time'] gt 0) or ($data['pay_type'] eq 0))">
    <div class="dialog clearfix">
        <span class="left-big"></span>
        <span class="left-middle"></span>
        <p>
            <span class="circle green"></span>
            已评价
        </p>
        <p><span>用户评价：</span> {BEESCRM:$data.comment}</p>
        <p><span>服务星级：</span></p>
        <p>
            响应时间
            <for start="0" end="$data['quality_star']">
                <span class="iconfont icon-xingxing star small"></span>
            </for><for start="$data['quality_star']" end="5">
            <span class="iconfont icon-xingxing star small gray-star"></span>
        </for>
        </p>
        <p>维修质量
            <for start="0" end="$data['service_star']">
                <span class="iconfont icon-xingxing star small"></span>
            </for><for start="$data['service_star']" end="5">
                <span class="iconfont icon-xingxing star small gray-star"></span>
            </for>
        </p>
        <p>服务态度
            <for start="0" end="$data['image_star']">
                <span class="iconfont icon-xingxing star small"></span>
            </for><for start="$data['image_star']" end="5">
                <span class="iconfont icon-xingxing star small gray-star"></span>
            </for>
        </p>
    </div>
</if>
